<template>
  <div>
    <ul class="comment-list">
      <li v-for="comment in comments" :key="comment.id" class="comment-item">
        <div class="comment-image">
          <img :src="comment.image" alt="Comment Image">
        </div>
        <div class="comment-details">
          <div class="title">{{ comment.title }}</div>
          <div class="author-time">
            <p><strong></strong> {{ comment.author }}</p>
            <p><strong></strong> {{ comment.time }}</p>
          </div>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      comments: [
        { id: 1, title: 'Great Product', author: 'Alice', time: '2022-06-15', image: 'https://example.com/comment1.jpg' },
        { id: 2, title: 'Excellent Service', author: 'Bob', time: '2022-06-16', image: 'https://example.com/comment2.jpg' },
      ]
    };
  }
};
</script>

<style>
  .comment-list {
    list-style-type: none;
    padding: 0;
  }

  .comment-item {
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .comment-image {
    flex: 1;
    margin-right: 10px;
  }

  .comment-image img {
    max-width: 200px;
    height: auto;
    border-radius: 5px;
  }

  .comment-details {
    flex: 3;
    display: flex;
    flex-direction: column;
  }

  .title {
    font-size: 1.2em;
    margin-bottom: 5px;
  }

  .author-time {
    text-align: right;
  }

  p {
    color: #666;
    margin: 0;
  }
</style>
